package Chapter22.CollectionsMethod;

import java.util.*;

public class Frequency {
    public static void main(String[] args) {

        Collection<String> collection = Arrays.asList("red", "green", "blue", "blue");
        System.out.println(Collections.frequency(collection, "blue"));


    }
}
